Skip to content

Conversation

@AustinWise
Copy link
Contributor

@AustinWise AustinWise commented Oct 20, 2021

The else if (major == 12) in #60668 was dead code, since the previous if statement if (major > 11) would be true for major == 12. Judging by the comment and code, it looks like the intention of this else if statement was to match major == 11.

The `else if (major == 12)` is dead code, since the previous if `if (major > 11)` would be true for `major == 12`. Judging by the comment and code, it looks like the intention of this `else if` statement was to match `major == 11`.
@ghost ghost added community-contribution Indicates that the PR has been added by a community member area-Host labels Oct 20, 2021
@ghost
Copy link

ghost commented Oct 20, 2021

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

The else if (major == 12) was dead code, since the previous if statement if (major > 11) would be true for major == 12. Judging by the comment and code, it looks like the intention of this else if statement was to match major == 11.

Author: AustinWise
Assignees: -
Labels:

area-Host, community-contribution

Milestone: -

@AustinWise
Copy link
Contributor Author

CC @wfurt

@akoeplinger akoeplinger requested a review from wfurt October 20, 2021 17:10
Copy link
Member

@akoeplinger akoeplinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thanks

Copy link
Member

@wfurt wfurt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks.

@wfurt wfurt merged commit f5fe90e into dotnet:main Oct 20, 2021
wfurt pushed a commit to wfurt/runtime that referenced this pull request Oct 30, 2021
The `else if (major == 12)` is dead code, since the previous if `if (major > 11)` would be true for `major == 12`. Judging by the comment and code, it looks like the intention of this `else if` statement was to match `major == 11`.
Anipik pushed a commit that referenced this pull request Nov 10, 2021
* RID work for macOS 12 (#59066)

* fix rid processing on macOS (#60494)

* fix rid processing on macOS

* Update src/native/corehost/hostmisc/pal.unix.cpp

* Update src/native/corehost/hostmisc/pal.unix.cpp

* remove extra size calculation

* Fix "fix rid processing on macOS" (#60668)

The `else if (major == 12)` is dead code, since the previous if `if (major > 11)` would be true for `major == 12`. Judging by the comment and code, it looks like the intention of this `else if` statement was to match `major == 11`.

* add the packaging for platforms package

Co-authored-by: Austin Wise <[email protected]>
Co-authored-by: Anirudh Agnihotry <[email protected]>
@ghost ghost locked as resolved and limited conversation to collaborators Nov 19, 2021
@AustinWise AustinWise deleted the patch-1 branch February 21, 2022 23:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Host community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants